<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>С блэк-джеком</title>
        <meta http-equiv="refresh" content="#{session.maxInactiveInterval};url=index.xhtml"/>
    </h:head>
    <h:body>
        <table width="100%">
            <tr>
                <td width="75%">
        <h:panelGrid>
            Enter address here:
            <h:form>
                <h:inputText value="#{mainBean.url}">
                    <f:ajax render="outText outMessage"
                            execute="@form"
                            event="keyup"/>
                </h:inputText>
                <h:outputText id="outMessage"
                              value="#{mainBean.outMessage}">
                </h:outputText>
                <br/>
                <h:commandButton value="list dir"
                                 action="#{mainBean.onListButtonClick()}">
                    <f:ajax render="listBox outMessage"
                            execute="@form"/>
                </h:commandButton>
                <br/>
                Enter a regexp(perl) to find matches in current directory:
                <br/>
                <h:inputText value="#{mainBean.regexp}"/>
                <br/>
                <h:commandButton value="find"
                                 actionListener="#{mainBean.onFindButtonClick()}" >
                    <f:ajax render="findBox outMessage"
                            execute="@form"/>
                </h:commandButton>
                <br/>
                <h:outputText id="outText"
                              value="#{mainBean.serverOut}"/>
                <br>
                    <table>
                        <tr>
                            <td valign="top">
                                <h:selectOneListbox id="listBox">
                                    <f:selectItems value="#{mainBean.list}"/>
                                </h:selectOneListbox>
                            </td>
                            <td valign="top">
                                <h:selectOneListbox id="findBox">
                                    <f:selectItems value="#{mainBean.findBox}"/>
                                </h:selectOneListbox>
                            </td>
                        </tr>
                    </table>
                </br>
            </h:form>
        </h:panelGrid>
                </td>
                <td width="25%">
                    <h:form >
                        <h:commandButton value="Login/Register" action="/loginPage.xhtml"/>
                        <br/>
                        <br/>
                        <br/>
                        <br/>
                        <br/>
                        <br/>
                        <a href="http://www.golden-games.ru/enter.php?vash_login">
                            <img align="center" src="http://www.goodtimes.ru/images/casino1.jpg"/>
                        </a>
                    </h:form>
                </td>
            </tr>
        </table>
    </h:body>
</html>

